<template>
    <div>
      <div class="monitor-list">
        <div class="list-type">
          <div class="list-type-detail type-see">
            <span>查看案例</span>
            <i class="see-pic"></i>
          </div>
          <div class="list-type-detail type-create" @click="$router.push('/createMonitor')">
            <span>创建监测</span>
            <i class="create-pic"></i>
          </div>
          <div class="list-type-detail type-collection" @click="$router.push('/like')">
            <span>查看收藏</span>
            <i class="collection-pic"></i>
          </div>
        </div>
        <div class="list-detail">
          <div class="list-detail-title">
            <div class="detail-title-left">
              <i></i>
              <span class="bold">杨幂</span>
            </div>
            <div class="detail-title-right" @click="$router.push('/keywordDetail')">
              <span>详情</span>
              <i></i>
            </div>
          </div>
          <div class="list-detail-content">
            <div class="detail-content-top">
              <div>
                <span class="bold">预警</span>
                <span>今日<a style="color: #f37903">0</a>条</span>
              </div>
              <a>设置</a>
            </div>
            <div class="detail-content-bottom">
              <div>
                <span class="bold">日报</span>
                <span>【<a style="color: #f37903">2018-05-02</a>】日报已生成</span>
              </div>
              <a>设置</a>
            </div>
          </div>
        </div>
      </div>
      <div class="go-home" @click="$router.push('/home')"></div>
    </div>
</template>

<script>
    export default {
        name: "monitorList"
    }
</script>

<style scoped lang="less">
  .monitor-list{
    padding: 28px 15px;
    .list-type{
      overflow: hidden;
      display: flex;
      justify-content: space-between;
      .list-type-detail{
        width: 224px;
        height: 134px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 8px;
        color: #fff;
        font-size: 28px;/*px*/
        span{
          padding-left: 12px;
        }
      }
      .type-see{
        background-color: #2a81e2;
      }
      .type-create{
        background-color: #0f62c0;
      }
      .type-collection{
        background-color: #05469b;
      }
    }
    .list-detail{
      padding-top: 28px;
      color: #fff;
      .list-detail-title{
        width: 100%;
        height: 62px;
        display: flex;
        justify-content: space-between;
        background-color: #05469b;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        .detail-title-left{
          height: 62px;
          padding-left: 17px;
          display: flex;
          align-items: center;
          overflow: hidden;
        }
        .detail-title-right{
          height: 62px;
          padding-right: 17px;
          display: flex;
          align-items: center;
          overflow: hidden;
        }
      }
      .list-detail-content{
        width: 100%;
        height: 200px;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        background-color: #fdfeff;
        color: #2c343d;
        box-shadow: 0 2px 6px rgba(8, 41, 85, 0.08);
        .detail-content-top{
          margin: 0 17px;
          height: 99px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          border-bottom: 2px solid #e6ebf1;/*px*/
          div{
            span{
              padding-right: 26px;
            }
          }
        }
        .detail-content-bottom{
          margin: 0 17px;
          height: 99px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          div{
            span{
              padding-right: 26px;
            }
          }
        }
      }
    }
  }
  .see-pic{
    width: 94px;
    height: 134px;
    background: url("../../assets/monitor/directory_case@2x.png") no-repeat center;
    background-size: 94px 134px;
  }
  .create-pic{
    width: 94px;
    height: 134px;
    background: url("../../assets/monitor/directory_monitor@2x.png") no-repeat center;
    background-size: 94px 134px;
  }
  .collection-pic{
    width: 94px;
    height: 134px;
    background: url("../../assets/monitor/directory_like@2x.png") no-repeat center;
    background-size: 94px 134px;
  }
  .detail-title-left i{
    width: 42px;
    height: 28px;
    background: url("../../assets/monitor/directory_icon@2x.png") no-repeat center;
    background-size: 42px 28px;
  }
  .detail-title-right i{
    width: 24px;
    height: 24px;
    background: url("../../assets/monitor/directory_eneter@2x.png") no-repeat center;
    background-size: 24px 24px;
  }
  [data-dpr='3'] .monitor-list{
    .see-pic{
      background: url("../../assets/monitor/directory_case@3x.png") no-repeat center;
      background-size: 94px 134px;
    }
    .create-pic{
      background: url("../../assets/monitor/directory_monitor@3x.png") no-repeat center;
      background-size: 94px 134px;
    }
    .collection-pic{
      background: url("../../assets/monitor/directory_like@3x.png") no-repeat center;
      background-size: 94px 134px;
    }
    .detail-title-left i{
      background: url("../../assets/monitor/directory_icon@3x.png") no-repeat center;
      background-size: 42px 28px;
    }
    .detail-title-right i{
      background: url("../../assets/monitor/directory_eneter@3x.png") no-repeat center;
      background-size: 24px 24px;
    }
  }
</style>
